package com.bw.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.domain.SysRole;
import com.bw.service.SysRoleService;
import com.bw.mapper.SysRoleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author xingsai
* @description 针对表【sys_role(角色信息表)】的数据库操作Service实现
* @createDate 2023-08-15 19:23:46
*/
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole>
    implements SysRoleService{
    @Resource
    SysRoleMapper sysRoleMapper;

    @Override
    public IPage<SysRole> listRole(Page page, String roleName, String roleKey, String status, String beginTime,String endTime) {

        return sysRoleMapper.listRole(page,roleName,roleKey,status,beginTime,endTime);
    }

    @Override
    public List<SysRole> listExcel() {
        return sysRoleMapper.listExcel();
    }

    @Override
    public void upStatus(Integer roleId) {
        sysRoleMapper.upStatus(roleId);
    }
}




